package com.huang.springbootthymeleafshiro.shiro.redis;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;

public class RedisCacheManager implements CacheManager {
    @Override
    public <K, V> Cache<K, V> getCache(String authName) throws CacheException {
        //authName  认证授权 设置的缓存的名字
        System.out.println(authName);
        return new RedisCache<K,V>(authName);
    }
}
